﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CSNN
{
    /// <summary>
    /// Логика взаимодействия для WindowNeuralNetInfo.xaml
    /// </summary>
    public partial class WindowNeuralNetInfo : Window
    {
        public WindowNeuralNetInfo()
        {
            InitializeComponent();
        }
        
        /// <summary>
        /// Передача нейронной сети окну информации для отображения
        /// </summary>
        /// <param name="NNet">Объект нейронной сети</param>
        public void SetNeuralNetInfo(NeuralNetwork NNet)
        {
            this.textBlockLayerCount.Text = NNet.LayersCount.ToString();
            this.textBlockNeuronsCount.Text = NNet.NeuronsInNet.ToString();
            this.textBlockInputsCount.Text = NNet.NeuralLayers[0].NeuronsDemension.ToString();
            this.textBlockOutputsCount.Text = NNet.NeuralLayers[NNet.LayersCount - 1].NeuronsDemension.ToString();
            this.textBlockTrainingImagesCount.Text = NNet.TrainingImages.Count.ToString();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
